{{ template "header.html" }}

<div class="item">
    WebToolsGo--生成Md5
</div>
<div class="item">
    <label>
        <textarea name="text"></textarea>
    </label>
</div>
<button onclick="toMd5()">生成</button>

<div id="md5Ans" style="padding: 10px; margin-top: 20px; background-color:#cccccc;"></div>

<script>
    function toMd5() {
        var i = $("textarea[name='text']").val()
        $.post("/md5", {"text": i}, function (res) {
            $("#md5Ans").text(res.msg)
        }, "json")
    }
</script>

{{ template "footer.html" }}